package com.database.management.service;

import java.sql.SQLException;
import java.util.Map;

import com.database.management.dao.CommandDao;
import com.database.management.dao.IndexDao;

public class IndexService {
	
	IndexDao indexDao = null;
	public IndexService(Integer key) {
		indexDao = new IndexDao(key);
	}

	public Map execute(String sql) throws Exception {
		return indexDao.execute(sql);
	}
	
	public int update(String sql) throws SQLException {
		return indexDao.update(sql);
	}

}
